<h1>Контроллер "<?=$this->ctrl['title'];?>"</h1>
<form
	action="<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'groups', 'action' => 'save_module'));?>"
	method="post" name="form1">
<table width="100%" onmouseover="this.style.background = '#eaeaea'"
	onmouseout="this.style.background = '#fff'">
<?
while (list ($k, $v) = each($this->ctrlActions)) {
      
    if (!$v['enabled']) $checked = '';
    else $checked = ' checked';
?>
		    <tr>
		<td width="1"><input id="act_<?php echo $k; ?>" type="checkbox" name="act[]" value="<?=$k;?>"
			<?=$checked;?>></td>
		<td><label for="act_<?php echo $k; ?>" style="text-align: left; width: 100%"><?=$v['title'];?></label></td>
	</tr>
<?
}
?>
</table>
<table>
	<tr>
		<td class="r"><input type="submit" value="Сохранить" class="bt" /></td>
		<td class="l"><input type="button" value="Назад" class="bt"
			onClick="window.location.href='<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'groups', 'action' => 'view_group', 'id' => $this->group->GetId() , 'ctrlid' => $this->moduleId));?>';" /></td>
	</tr>
</table>
<input type="hidden" name="id" value="<?=$this->group->GetId();?>"> <input
	type="hidden" name="modid" value="<?=$this->ctrlId;?>"> <input
	type="hidden" name="ctrlid" value="<?=$this->moduleId;?>"></form>